<?php

namespace App\Admin\Extensions\Tools;

use Encore\Admin\Admin;
use Encore\Admin\Grid\Tools\AbstractTool;

/**
 * 批量修改状态
 */
class ServerAction extends AbstractTool
{
    public function render()
    {
        Admin::script($this->script());

        return view('admin.server.plan');
    }

    public function script()
    {
        $str = <<<EOF
            $("#serverImport").on('click',function(){
                $("#serverPlan-modal").modal();
            });
            $(".modal-backdrop").remove();
EOF;

        return $str;
    }
}
